Skip to content

Use LogLevel.log() method in DeferredLog.logTo() #46466

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Kguswo
Copy link

@Kguswo Kguswo commented Jul 18, 2025

Replace switch statement with LogLevel.log() method call in DeferredLog.logTo().

Changes:

  • Use level.log(log, message, throwable) instead of switch statement

Motivation:

  • Reduces code duplication
  • Improves maintainability
  • Cleaner, more concise implementation

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jul 18, 2025
@Kguswo Kguswo force-pushed the improve-deferred-log-method branch from edac69d to da298cd Compare July 21, 2025 08:52
Signed-off-by: Now <khj990322@gmail.com>
@philwebb philwebb self-assigned this Jul 21, 2025
@philwebb philwebb added type: task A general task and removed status: waiting-for-triage An issue we've not yet triaged labels Jul 21, 2025
@philwebb philwebb added this to the 3.4.x milestone Jul 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: task A general task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants